package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.FileStorage;
import com.wanlian.netty.msg.MsgType;

public class FileStorageReplyMsg extends BaseMsg {

    public FileStorageReplyMsg() {
        super();
        this.setType(MsgType.DEVICE_FILE_STORAGE_REPLY);
    }


    private FileStorage fileStorage;

    public FileStorage getFileStorage() {
        return fileStorage;
    }

    public void setFileStorage(FileStorage fileStorage) {
        this.fileStorage = fileStorage;
        this.setContent(JsonStringUtil.writeValueAsString(this.fileStorage));
    }
}
